﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>获取列表框的选择</title>
    <script type="text/javascript" language="JavaScript">
        function mySelect(){
            let mysel = document.getElementById("select1");
            let txt = mysel.options[mysel.options.selectedIndex].text;
            let valu = mysel.options[mysel.options.selectedIndex].value;
            alert("你选择的是：" + valu);
        }
        
    </script>
</head>
<body>
<select size="10" ondblclick="mySelect()" id="select1">
    <option value="大中城市">大城市</option>
    <option value="国际化大都市">国际城市</option>
</select>
</body>
</html>